cd "/media/Environ/Compile/rocksndiamonds-4.1.4.1" && /usr/bin/gdb -- "/media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds"
GNU gdb (Debian 8.2.1-2+b3) 8.2.1
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-linux-gnu".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
    <http://www.gnu.org/software/gdb/documentation/>.

For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds...done.
(gdb) r
Starting program: /media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe37eb700 (LWP 11018)]
[New Thread 0x7fffe37aa700 (LWP 11019)]
[New Thread 0x7fffe1903700 (LWP 11022)]
double free or corruption (!prev)

Thread 1 "rocksndiamonds" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
#0  __GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
#1  0x00007ffff78a1535 in __GI_abort () at abort.c:79
#2  0x00007ffff78f8508 in __libc_message (action=action@entry=do_abort, fmt=fmt@entry=0x7ffff7a0328d "%s\n")
    at ../sysdeps/posix/libc_fatal.c:181
#3  0x00007ffff78fec1a in malloc_printerr (str=str@entry=0x7ffff7a05018 "double free or corruption (!prev)") at malloc.c:5341
#4  0x00007ffff790073c in _int_free (av=0x7ffff7a3ac40 <main_arena>, p=0x55555b6fff00, have_lock=<optimized out>) at malloc.c:4309
#5  0x0000555555713b28 in checked_free (ptr=0x55555b6fff10) at misc.c:1275
#6  0x0000555555712b25 in setString (old_value=0x55555860c330 <tape+16>, new_value=0x55555c783530 "rnd_conor_mancone")
    at misc.c:844
#7  0x00005555556eca43 in TapeErase () at tape.c:530
#8  0x00005555556ecbff in TapeStartRecording (random_seed=1591513634) at tape.c:584
#9  0x00005555556a7c7b in StartGameActions (init_network_game=0, record_tape=1, random_seed=0) at game.c:11322
#10 0x00005555556648c0 in HandleMainMenu (mx=0, my=0, dx=0, dy=0, button=0) at screens.c:2134
#11 0x000055555564a6a5 in HandleKey (key=13, key_status=1) at events.c:2304
#12 0x0000555555648c63 in HandleKeyEvent (event=0x7fffffffd9f0) at events.c:1462
#13 0x0000555555646b84 in HandleEvents () at events.c:249
#14 0x0000555555646d67 in EventLoop () at events.c:348
#15 0x000055555563a1ca in main (argc=1, argv=0x7fffffffdb48) at main.c:7762
(gdb) # back at home screen
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe37eb700 (LWP 11371)]
[New Thread 0x7fffe37aa700 (LWP 11372)]
[New Thread 0x7fffe1903700 (LWP 11373)]
malloc(): unsorted double linked list corrupted

Thread 1 "rocksndiamonds" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) # hit ESC to to start over, froze at home screen
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe37eb700 (LWP 11861)]
[New Thread 0x7fffe37aa700 (LWP 11862)]
[New Thread 0x7fffe1903700 (LWP 11863)]
rocksndiamonds: frame delay == 40 ms (max. 25 fps / 50 %)
rocksndiamonds: frame delay == 40 ms (max. 25 fps / 50 %)
malloc_consolidate(): invalid chunk size

Thread 1 "rocksndiamonds" received signal SIGABRT, Aborted.
__GI_raise (sig=sig@entry=6) at ../sysdeps/unix/sysv/linux/raise.c:50
50	../sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) # just hit esc
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe37eb700 (LWP 17491)]
[New Thread 0x7fffe37aa700 (LWP 17492)]
[New Thread 0x7fffe1903700 (LWP 17493)]
rocksndiamonds: warning: getKeyFromKeyName(): not completely implemented
rocksndiamonds: warning: getKeyFromKeyName(): not completely implemented
rocksndiamonds: frame delay == 40 ms (max. 25 fps / 50 %)
rocksndiamonds: warning: getKeyFromKeyName(): not completely implemented
rocksndiamonds: frame delay == 40 ms (max. 25 fps / 50 %)
rocksndiamonds: frame delay == 15 ms (max. 66 fps / 133 %)
rocksndiamonds: frame delay == 40 ms (max. 25 fps / 50 %)
rocksndiamonds: frame delay == 1 ms (max. 1000 fps / 2000 %)
rocksndiamonds: frame delay == 0 ms (maximum speed)
rocksndiamonds: frame delay == 1 ms (max. 1000 fps / 2000 %)
rocksndiamonds: frame delay == 0 ms (maximum speed)
rocksndiamonds: frame delay == 40 ms (max. 25 fps / 50 %)
rocksndiamonds: frame delay == 15 ms (max. 66 fps / 133 %)
rocksndiamonds: frame delay == 40 ms (max. 25 fps / 50 %)
rocksndiamonds: frame delay == 15 ms (max. 66 fps / 133 %)
rocksndiamonds: frame delay == 40 ms (max. 25 fps / 50 %)
rocksndiamonds: frame delay == 15 ms (max. 66 fps / 133 %)
rocksndiamonds: frame delay == 30 ms (max. 33 fps / 66 %)

Thread 1 "rocksndiamonds" received signal SIGSEGV, Segmentation fault.
0x00005555556ff272 in MultiMapGadgets (mode=121) at gadgets.c:1525
1525	    int x = gi->x;
(gdb) # was going to start a new level
(gdb) # on select level number scene
(gdb) bt
#0  0x00005555556ff272 in MultiMapGadgets (mode=121) at gadgets.c:1525
#1  0x00005555556ff475 in UnmapAllGadgets () at gadgets.c:1552
#2  0x00005555556627e0 in DrawMainMenu () at screens.c:1556
#3  0x000055555566e4dc in HandleChooseTree (mx=848, my=776, dx=0, dy=0, button=0, ti_ptr=0x5555558763e8 <level_number_current>)
    at screens.c:4523
#4  0x000055555566e775 in HandleChooseLevelNr (mx=848, my=776, dx=0, dy=0, button=0) at screens.c:4601
#5  0x0000555555649363 in HandleButton (mx=848, my=776, button=0, button_nr=1) at events.c:1735
#6  0x00005555556470fb in HandleButtonEvent (event=0x7fffffffd9f0) at events.c:518
#7  0x0000555555646b22 in HandleEvents () at events.c:215
#8  0x0000555555646d67 in EventLoop () at events.c:348
#9  0x000055555563a1ca in main (argc=1, argv=0x7fffffffdb48) at main.c:7762
(gdb) # notes above bt
(gdb) r
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /media/Environ/Compile/rocksndiamonds-4.1.4.1/rocksndiamonds 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
[New Thread 0x7fffe37eb700 (LWP 21450)]
[New Thread 0x7fffe37aa700 (LWP 21451)]
[New Thread 0x7fffe1904700 (LWP 21452)]
rocksndiamonds: frame delay == 60 ms (max. 16 fps / 33 %)
rocksndiamonds: frame delay == 40 ms (max. 25 fps / 50 %)
rocksndiamonds: frame delay == 29 ms (max. 34 fps / 68 %)
[Thread 0x7fffe37aa700 (LWP 21451) exited]
[Thread 0x7fffe37eb700 (LWP 21450) exited]
[Thread 0x7fffe1904700 (LWP 21452) exited]
[Inferior 1 (process 21447) exited normally]
(gdb) 
